package com.example.demo.run.Controller;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("pc")
public class XiaQiCon {
//    @RequestMapping( value="xiaQi",method= RequestMethod.POST)
    @PostMapping("/xiaQi")
    public  void  xiaQi(HttpServletResponse response, HttpServletRequest request,  String clickQi, String sum, String banJin ){
        JSONObject jsonObject = JSONObject.fromObject(clickQi);
        Object x = jsonObject.get("x");
        String s = x.toString();
        JSONArray jsonArray = JSONArray.fromObject(sum);
        String x1 = jsonArray.getJSONArray(0).getJSONObject(0).get("x").toString();

    }
}
